package com.elong.qadev.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
 * 
* @ClassName: ConfigBrowser
* @Description: TODO(浏览器类型、地址、版本、端口配置)
* @author kangchen
* @date 2015年10月30日
*
 */
@Entity
@Table(name = "CONFIG_BROWSER", schema = "ti")
public class ConfigBrowser {
	
	public ConfigBrowser(int id, String browserName, String browserVersion,
			String systemName, String ip, String port, int maxSession,
			int maxInstance, String configer, Date createDate) {
		super();
		this.id = id;
		this.browserName = browserName;
		this.browserVersion = browserVersion;
		this.systemName = systemName;
		this.ip = ip;
		this.port = port;
		this.maxSession = maxSession;
		this.maxInstance = maxInstance;
		this.configer = configer;
		this.createDate = createDate;
	}
	public ConfigBrowser() {
		super();
	}
	private int id;
	private String browserName;
	private String browserVersion;
	private String systemName;
	private String ip;
	private String port;
	private int maxSession;
	private int maxInstance;
	private String configer;
	private Date createDate;
	@Column(name = "CONFIGER",nullable = false, length = 20)
	public String getConfiger() {
		return configer;
	}
	public void setConfiger(String configer) {
		this.configer = configer;
	}
	@Temporal(TemporalType.TIMESTAMP)
    @Column(name = "CREATEDATE", length = 7)
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
    @Column(name = "ID", unique = true, nullable = false, length = 10)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	@Column(name = "BROWSERNAME",nullable = true, length = 100)
	public String getBrowserName() {
		return browserName;
	}
	public void setBrowserName(String browserName) {
		this.browserName = browserName;
	}
	@Column(name = "BROWSERVERSION",nullable = true, length = 10)
	public String getBrowserVersion() {
		return browserVersion;
	}
	public void setBrowserVersion(String browserVersion) {
		this.browserVersion = browserVersion;
	}
	@Column(name = "SYSTEMNAME",nullable = true, length = 50)
	public String getSystemName() {
		return systemName;
	}
	public void setSystemName(String systemName) {
		this.systemName = systemName;
	}
	@Column(name = "IP",nullable = true, length = 50)
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	@Column(name = "PORT",nullable = true, length = 50)
	public String getPort() {
		return port;
	}
	public void setPort(String port) {
		this.port = port;
	}
	@Column(name = "MAXSESSION",nullable = true, length = 20)
	public int getMaxSession() {
		return maxSession;
	}
	public void setMaxSession(int maxSession) {
		this.maxSession = maxSession;
	}
	@Column(name = "MAXINSTANCE",nullable = true, length = 20)
	public int getMaxInstance() {
		return maxInstance;
	}
	public void setMaxInstance(int maxInstance) {
		this.maxInstance = maxInstance;
	}
	@Override
	public String toString() {
		return "ConfigBrowser [id=" + id + ", browserName=" + browserName
				+ ", browserVersion=" + browserVersion + ", systemName="
				+ systemName + ", ip=" + ip + ", port=" + port
				+ ", maxSession=" + maxSession + ", maxInstance=" + maxInstance
				+ ", configer=" + configer + ", createDate=" + createDate + "]";
	}
	
	
}
